package io;

import java.io.*;

/*
 使用缓冲字符输入流读取字符串
 */
public class BRDemo {
    public static void main(String[] args) throws IOException {
        FileInputStream fin = new FileInputStream("./src/main/java/io/BosDemo.java");
        InputStreamReader ir = new InputStreamReader(fin);
        BufferedReader br = new BufferedReader(ir);
        String line;
        while ((line = br.readLine())!=null){
            System.out.println(line);
        }
        br.close();



    }

}
